# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-net-ipv6addr
pkgver=1.02
pkgrel=2
pkgdesc="Perl/CPAN Module Net::IPv6Addr"
arch=("any")
url="https://search.cpan.org/dist/Net-IPv6Addr"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/B/BK/BKB/Net-IPv6Addr-$pkgver.tar.gz")
sha256sums=('b23401c1226fee8dfe627f5ae0e90c55ac547010eca398110dc1631f41c9ec7d')

build() {
  cd "$srcdir"/Net-IPv6Addr-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Net-IPv6Addr-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
